package com.example.mybatis.Annotation1;

import java.lang.reflect.*;


public class Test02 {
    public static void main(String[] args) throws ClassNotFoundException{
        Class aclass = Class.forName("com.example.mybatis.Annotation1.User");

        Method[] declaredMethods = aclass.getDeclaredMethods();
        for(Method declaredMethod : declaredMethods){
            System.out.println(declaredMethod);
        }

        System.out.println("=================================");
        Field[] declaredClasses = aclass.getDeclaredFields();
        for(Field declaredClass : declaredClasses){
            System.out.println(declaredClass);
        }
    }
}
